from flask import Flask
from flask_restful import Api
from dotenv import load_dotenv
from flasgger import Swagger

from views.weatherView import WeatherCity

app = Flask(__name__)
api = Api(app)
swagger = Swagger(app)


api.add_resource(WeatherCity, "/weather/<city>")

if __name__ == "__main__":
    load_dotenv()
    app.run(debug=True, port=443, ssl_context=('cert.pem', 'key.pem'))
